<toolbar id="toolbar" class="toolbar">
<form id="order_search" class="form-horizontal">
		<div class="filter-groups">
			<div class="control-group">
				<label class="control-label">订单ID</label>
				<div class="controls">
					<input type="text" name="tid" style="width:348px;">
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" style="width: 120px;">下单时间</label>
				<div class="controls" style="margin-left:125px;">
					<div class="input-append date" data-format="yyyy-MM-dd">
						<input type="text" name="start_date" value="{$start_date}">
						<span class="add-on"><i class="icon-th"></i></span>
					</div>
					至
					<div class="input-append date" data-format="yyyy-MM-dd">
						<input type="text" name="end_date" value="{$end_date}" >
						<span class="add-on"><i class="icon-th"></i></span>
					</div>
				</div>
			</div>
		</div>
		
		<div class="filter-groups">
			<div class="control-group">
				<label class="control-label">收益人手机号</label>
				<div class="controls">
					<input type="text" name="mobile" data-rule-mobile="true">
				</div>
			</div>
			
			<div class="control-group">
					<label class="control-label">是否结算</label>
					<div class="controls">
						<select name="checkout" >
							<option value="1">已结算</option>
							<option value="0">未结算</option>
						</select>
					</div>
			</div>
		</div>
	</form> 
</toolbar>

<!--表单 -->
<table id="table" data-toggle="gridview" class="table table-hover" data-url="__URL__" data-toolbar="#toolbar">
    <thead>
		<tr>
			<th data-field="product_id" data-formatter="formatter_title">差价商品</th>
			<th data-field="tid" data-width="110" data-align="center">订单编号</th>
			<th data-field="buyer_nick" data-width="80">下单人</th>
			<th data-field="nickname" data-width="80">收益人</th>
			<th data-field="mobile" data-width="110" data-align="center">收益人手机号</th>
			<th data-field="sell_price" data-width="60" data-align="center">售价</th>
			<th data-field="parent_price" data-width="65" data-align="center">上级售价</th>
			<th data-field="diff_price" data-width="40" data-align="center">差价</th>
			<th data-field="num" data-width="40" data-align="center">数量</th>
			<th data-field="total_fee" data-width="60" data-align="center">收益</th>
			<th data-field="checkout" data-width="60">结算</th>
		</tr>
	</thead>
</table>
<script>
  function formatter_title(val, row, index){
  	return '<div><a href="/h5/goods?id='+row.goods_id+'" target="_blank">'+row.title+'</a></div><div>'+row.sku_json+'</div>'
  }  
</script>